package cn.bluemobi.app.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.bluemobi.app.entity.output.HelpCenter;
import cn.bluemobi.app.mapper.HelpCenterMapper;
import cn.bluemobi.app.service.HelpCenterService;
import cn.bluemobi.common.core.dto.ListDto;

@Service
@Transactional
public class HelpCenterServiceImpl implements HelpCenterService {

	@Autowired
	private HelpCenterMapper helpCenterMapper;

	@Override
	public ListDto<HelpCenter> findHelpCenterList() {
		ListDto<HelpCenter> dto = new ListDto<>();
		List<HelpCenter> helpCenters = helpCenterMapper.findHelpCenterList();
		dto.setList(helpCenters);
		return dto;
	}

}
